package com.luluteam.pushlib.model;


import com.luluteam.pushlib.constant.AppHolder;

/**
 * @author Guan
 * @date Created on 2018/11/21
 */
public class ContextInfo extends BaseInfo {

    public String deviceId = AppHolder.deviceId;
    public String appId = AppHolder.APP_ID;


    public long timestamp;


    public AppInfo appInfo;

    public DeviceInfo deviceInfo;

    public LocationInfo locationInfo;

    public Optional optional = new Optional();

//==========================================


    public static class LocationInfo {
        /**
         * 纬度
         */
        public double latitude;
        /**
         * 经度
         */
        public double longitude;


    }

    public static class Optional {

        /**
         * 用于标记这条情景信息是主动上报的，还是响应服务器请求后上报的
         */
        public int action;

        public String description;

        public UserBehaviorInfo userBehaviorInfo;

        public String jsonTag;
    }

    /**
     * app版本信息
     */
    public static class AppInfo {

        public String versionCode;
        public String versionName;

        public AppInfo(String versionCode, String versionName) {
            this.versionCode = versionCode;
            this.versionName = versionName;
        }
    }

}
